package org.example.myleet.p852;

import org.example.myleet.Utils.Assert;

public class Main {
    public static void main(String[] args) {
        Solution solution = new Solution();
        Assert.isTrue(1 == solution.peakIndexInMountainArray(new int[]{0,1,0}));
        Assert.isTrue(1 == solution.peakIndexInMountainArray(new int[]{0,2,1,0}));
        Assert.isTrue(1 == solution.peakIndexInMountainArray(new int[]{0,10,5,2}));
        Assert.isTrue(2 == solution.peakIndexInMountainArray(new int[]{3,4,5,1}));
        Assert.isTrue(2 == solution.peakIndexInMountainArray(new int[]{24,69,100,99,79,78,67,36,26,19}));
    }
}
